#include <iostream>
using namespace std;

class Line
{
  public:
    int getLength()
    {
        return *ptr;
    }

    Line(int Len = 1)
    {
        cout << "init" << endl;
        ptr = new int;
        *ptr = Len;
    }

    Line(const Line &obj)
    {
        cout << "copy" << endl;
        ptr = new int;
        *ptr = *obj.ptr;
    }

    ~Line()
    {
        cout << "destroy" << endl;
        delete ptr;
    }

  private:
    int *ptr;
};

void display(Line obj)
{
    cout << obj.getLength() << endl;
}

int main()
{
    cout << (1 < 0) << endl;
    Line line;
    Line line2 = line;
    display(line2);
    return 0;
}